package com.ruoyi.framework.websocket;

import com.ruoyi.common.utils.DateUtils;
import lombok.Data;

@Data
public class Message {

    private Long from;

    /**
     * 接收者
     * -1 【全体广播上下线信息】
     */
    private Long to;

    private String msg;
    /**
     * 消息类型
     * 1[正常消息],2[图片]
     */
    public int type = 1;

    private String date = DateUtils.getTime();
}
